<%@page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
	<link type="text/css" rel="stylesheet" href="main.css"/>
</head>
<body>
<div id="wpwrap">
	<%@include file="header/header.jsp"%>
	<%@include file="header/menu.jsp" %>
	<div id="wpcontent">
			<div>
				<span>${result }</span>
			</div>
			<form method="post" action="/addForm">
			<div><span>表单名称：</span><input type="text" name="name" value="${bean.name }"/></div>
			<div><span>表单描述：</span><input type="text" name="description" value="${bean.description }"/></div>
			<div><textarea name="content" rows="20" cols="100">${bean.content.value }</textarea></div>
			<c:if test="${null != bean}">
				<input type="hidden" name="kId" value="${bean.key.id }"/>
			</c:if>
			<div><input type="submit" value="提交"/> </div>
		</form>
	</div>
</div>
<script charset="utf-8" src="js/kindeditor-min.js"></script>
<script charset="utf-8" src="js/zh_CN.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
	editor = K.create('textarea[name="content"]', {
		allowFileManager : true
	});
});
</script>
</body>
</html>